SnippetManager.listMatching

Queries the known snippets for those matching @group, @language_id, and/or @trigger_prefix.

If any of these are %NULL, they will be ignored when filtering the available snippets.

The [iface@Gio.ListModel] only contains information about the available snippets until [method@Gio.ListModel.get_item] is called for a specific snippet. This helps reduce the number of [class@GObject.Object]'s that are created at runtime to those needed by the calling application.

class SnippetManager
listMatching
(
string group
,
string languageId
,)

Parameters

group string

a group name or %NULL

languageId string

a #GtkSourceLanguage:id or %NULL

triggerPrefix string

a prefix for a trigger to activate

Return Value

a #GListModel of #GtkSourceSnippet.

Meta